/*
 * Copyright：fxsen <br/>
 * Date: 2022/1/19 19:15 <br/>
 * Email:fxsen@foxmail.com
 * Author: fxsen
 */
package com.fxsen.commons.sysmanager.core.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fxsen.commons.core.base.common.entity.BaseEntity;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @describe: 系统权限
 * @date: 2022/1/19 19:15
 * @author: fxsen
 */
@ApiModel("权限")
@TableName("sys_permission")
@TableComment(value = "权限表")
public class Permission extends BaseEntity {
    private static final long serialVersionUID = -7791782231625531870L;
    /**
     * 上级id
     */
    @ApiModelProperty("上级id")
    @TableField(value = "pid")
    @Column(name = "pid", type = MySqlTypeConstant.VARCHAR, comment = "上级id",length = 32)
    private String pid;
    /**
     * 权限标识
     */
    @ApiModelProperty("权限标识")
    @TableField(value = "tag")
    @Column(name = "tag", type = MySqlTypeConstant.VARCHAR, comment = "权限标识",length = 100)
    private String tag;
    /**
     * 关联菜单id
     */
    @ApiModelProperty("关联菜单id")
    @TableField(value = "menu_id")
    @Column(name = "menu_id", type = MySqlTypeConstant.VARCHAR, comment = "关联菜单id",length = 100)
    private String menuId;
    /**
     * 权限名称
     */
    @ApiModelProperty("权限名称")
    @TableField(value = "name")
    private String name;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }
}
